//
//  YDMineControllerTopView.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/9.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YDMineNotiView.h"

//显示数据类型
typedef NS_ENUM(NSUInteger, SYMineTopViewClickStyle) {
    
    
    SYMineTopViewClickAcc,//0   deafault
    SYMineTopViewClickCharge,//1
    SYMineTopViewClickWithButton,//2
    SYMineTopViewClickWithNoti,   //3 点击了消息
};
@class YDMineControllerTopView;

@protocol SYMineControllerTopViewDelegate <NSObject>

@optional


/**
 view上面的事件触发

 @param topView view
 @param style 点击类型
 */
-(void)mineControllerTopView:(YDMineControllerTopView *)topView clickStyle:(SYMineTopViewClickStyle)style;
@end



@interface YDMineControllerTopView : UIView
@property (nonatomic , copy) NSDictionary *dict;

/**
 消息提醒view
 */
@property (nonatomic, strong)YDMineNotiView *notiView;


+(instancetype)mineControllerTopViewInitWithFrame:(CGRect)frame andDict:(NSDictionary *)dict;

@property (nonatomic , weak)id<SYMineControllerTopViewDelegate>delegate;

@end
